package com.example.sixth.coree.service;

import com.example.sixth.coree.entity.Roominfo;
import com.example.sixth.coree.entity.Roomuserinfo;
import com.example.sixth.coree.mapper.RoominfoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RooominfoService {
    @Resource
    RoominfoMapper mapper;
    public Roominfo queryById(Integer roomId){
        return mapper.queryById(roomId);
    }
    public List<Roomuserinfo> queryAll(){
        return mapper.queryAll();
    }
    public Boolean insert(Roominfo roominfo){
        return mapper.insert(roominfo);
    }
    public Boolean update(Roominfo roominfo){
        return mapper.update(roominfo);
    }
}
